<?php

define('IN_ECS', true);
require (dirname(__FILE__) . '/includes/init.php');

$act = $_REQUEST['act'];

/* 获得搜索推荐词 */
if($act === 'recommend'){   
    $keywords = array('毕莎罗颜料','调色盘','画板');                   //铅笔、扇形笔、马克笔、水粉笔
    $keywords = tourlencode($keywords);                        
    $response = array( 'response'=>'searchRecommend',
                   'keywords' => $keywords  );
    echo tourldecode($response);                                        
    
}
/* 具体搜索功能 */
else if($act === 'search'){
    $keywords = $_REQUEST['keywords'];
    echo $keywords;
}

?>